package com.wonyesoft.wuliu.view.cpbutton;

import com.wonyesoft.wuliu.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup.LayoutParams;

public class PayDialog extends Dialog {

	// 定义回调事件，用于dialog的点击事件
	public interface OnCustomDialogListener {
		public void back(String name);
	}
	
	public PayDialog(Context context, String name,
			OnCustomDialogListener customDialogListener) {
		super(context,R.style.Mydialog);
		// this.name = name;
		// this.customDialogListener = customDialogListener;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ly_pay_dialog);
		// 设置标题
		// setTitle(name);
		// etName = (EditText)findViewById(R.id.edit);
		// Button clickBtn = (Button) findViewById(R.id.clickbtn);
		// clickBtn.setOnClickListener(clickListener);
	}

	private View.OnClickListener clickListener = new View.OnClickListener() {

		@Override
		public void onClick(View v) {
			// customDialogListener.back(String.valueOf(etName.getText()));
			PayDialog.this.dismiss();
		}
	};

}
